{template header}
<div class="layui-container news-user">
  <div class="userSelf">
    <div class="img"><img src="{$member['avatar']}"></div>
    <p class="name">{$member['username']}</p>
   
    <ul><li><span class="number">{$member['articles']}</span><span class="label">文章</span></li>
    <li><span class="number">{$member['attentions']}</span><span class="label">关注</span></li>
    <li><span class="number">{$member['followers']}</span><span class="label">粉丝</span></li></ul>
  </div>
  <div class="layui-tab layui-tab-brief userCont">
    <ul class="layui-tab-title">
      <li class="layui-this">Ta的文章</li>
     
      <li>Ta的评论</li>
    </ul>
    <div class="layui-tab-content">
      <div class="layui-tab-item layui-show">
       
        <ul class="layui-form article">
             {eval $maxtuijian=100;}
          {eval $uid=$member['uid'];$tuijianlist=$this->getlistbysql("select id,image,describtion,title,state,ispc,viewtime  from ".$this->db->dbprefix."topic where authorid=$uid order by viewtime desc limit 0,$maxtuijian");}
  {loop $tuijianlist $wenzhang}
          <li>
           
            <span class="img"><img src="{$wenzhang['image']}"></span><div class="txt">
              <a href="{url topic/getone/$tuijian['id']}">{$wenzhang['title']}</a>
              <p>{eval echo tdate($wenzhang['viewtime']);}</p>
              <p class="cont">{eval echo clearhtml(htmlspecialchars_decode($wenzhang['describtion']));}</p>
            </div>
          </li>
              {/loop}
        </ul>
  
      </div>
   
      <div class="layui-tab-item">
        <ul class="comment">
          {eval $maxtuijian1=100;}
          {eval $uid=$member['uid'];$tuijianlist=$this->getlistbysql("select id,title,time,supports,content  from ".$this->db->dbprefix."articlecomment where authorid=$uid order by time desc limit 0,$maxtuijian1");}
  {loop $tuijianlist $wenzhang}
          <li>
            <p class="title"><a href="">{$wenzhang['title']}</a><span class="pushTime">{eval echo tdate($wenzhang['time']);}</span><span class="like">{$wenzhang['supports']}</span><i class="layui-icon layui-icon-news-good like"></i></p>
            <p>{eval echo clearhtml(htmlspecialchars_decode($wenzhang['content']));}</p>
          </li>
         {/loop}   
        </ul>
      
      </div>
    </div>
  </div>    
</div>

{template footer}